Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: LotusScript - launching file on Mac - org/eclipse/swt/program/Program.launch method not working
Feedback Type: Question
Product Area: Notes Client
Technical Area: Application Development
Platform: Mac OS X
Release: 8.5.2
Reproducible: Always

Hi folks,

A recent infestation of macs among the exec types has me tearing my hair out at the moment. Today's issue is with an export function that writes to a csv file on the local machine (I'm using the notes data directory) and then opens it for them.

I'm writing to a file called export.csv and then using this code snippet that I found on the nsftools.com blog - http://www.nsftools.com/blog/blog-03-2010.htm (thanks guys!).

Dim jSession As JavaSession
Dim jClass As JavaClass
Dim jMethod As JavaMethod
Set jSession = New JavaSession()
Set jClass = jSession.GetClass("org/eclipse/swt/program/Program")
Set jMethod = jClass.GetMethod("launch","(Ljava/lang/String;)Z")
Call jMethod.Invoke(, fName)

This works well on my Windows machine, but when I run it on my manager's mac the file does not launch.

He can launch it from the file explorer thing and it opens in Excel, so I'm thinking his machine has the whole default application thing configured properly.

Any ideas? I'm happy to go with an alternative method for opening the file if this one is not an option on the mac.

Regards,

Brendan


Feedback number WEBB8QL5UK created by ~Manny Prekisonjip on 01/17/2012

Status: Open
Comments:

LotusScript - launching file on Mac... (~Manny Prekison... 17.Jan.12)
. . Did you try the shell function? (~Bill Frokimari... 18.Jan.12)
. . . . Didn't think that would work, but w... (~Manny Prekison... 24.Jan.12)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS